package org.hbbTlias2025.mapper;


import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.hbbTlias2025.pojo.Student;
import org.hbbTlias2025.pojo.StudentQueryParam;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {

    List<Student> getStudentByClazzId(Integer id);


    List<Student> findAll(StudentQueryParam studentQueryParam);

    Student getStudentById(Integer id);

    void updateStudent(Student student);

    void deleteIds(List<Integer> ids);

    void addStudent(Student student);

    @MapKey("name")
    List<Map<String, Object>> getstudentDegreeData();

    @MapKey("dataList")
    List<Map<String, Object>> getStudentCountData();
}
